package com.lingyu.jsjx.domain;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 兼职任职档案对象 jsjx_parttime_record
 * 
 * @author ruoyi
 * @date 2025-08-08
 */
@Data
@TableName("jsjx_parttime_record")
public class ParttimeRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 兼职记录ID */
    @TableId(type = IdType.AUTO,value = "parttime_id")
    private Long parttimeId;

    /** 兼职单位 */
    @Excel(name = "兼职单位")
    private String organization;

    /** 兼职岗位 */
    @Excel(name = "兼职岗位")
    private String position;

    /** 兼职类型（下拉选择） */
    private Long parttimeTypeId;

    /** 兼职类型（下拉选择） */
    @Excel(name = "兼职类型")
    private String parttimeTypeName;

    /** 兼职性质（下拉选择） */
    private Long parttimeNatureId;

    /** 兼职性质（下拉选择） */
    @Excel(name = "兼职性质")
    private String parttimeNatureName;

    /** 兼职开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "兼职开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 兼职结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "兼职结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 工作量描述 */
    @Excel(name = "工作量描述")
    private String workload;

    /** 兼职人姓名id */
    private Long employeeId;

    /** 兼职人姓名name */
    @Excel(name = "兼职人姓名")
    private String employeeName;

    /** 岗位职责描述（200字以内） */
    @Excel(name = "岗位职责描述")
    private String responsibilities;

    /** 工作成果摘要（200字以内） */
    @Excel(name = "工作成果摘要")
    private String achievements;

    /** 第三方评价（200字以内） */
    @Excel(name = "第三方评价")
    private String thirdpartyEvaluation;

    /** 兼职证明文件路径 */
    private String certificationFileId;

    @TableField(exist = false)
    private List<FileInfo> certificationFileList;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("parttimeId", getParttimeId())
            .append("organization", getOrganization())
            .append("position", getPosition())
            .append("parttimeTypeId", getParttimeTypeId())
            .append("parttimeTypeName", getParttimeTypeName())
            .append("parttimeNatureId", getParttimeNatureId())
            .append("parttimeNatureName", getParttimeNatureName())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("workload", getWorkload())
            .append("employeeId", getEmployeeId())
            .append("employeeName", getEmployeeName())
            .append("responsibilities", getResponsibilities())
            .append("achievements", getAchievements())
            .append("thirdpartyEvaluation", getThirdpartyEvaluation())
            .append("certificationFileId", getCertificationFileId())
            .append("createBy", getCreateBy())
            .append("createByName", getCreateByName())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateByName", getUpdateByName())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
